package com.zyc.demo.rabbitmq.listener;

import com.zyc.demo.rabbitmq.config.ConstantVar;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {ConstantVar.queue_topic_messages_b})
public class TopicExchangeListenerB {

    @RabbitHandler
    public void process(String msg) {
        System.out.println("接收到从 queue_topic_messages_b 来的消息" + msg);
    }
}
